﻿#include <iostream>
#include <thread>
#include <cassert>

int main(int argc, char* argv[])
{  
   while(true)
   {
      std::cout<<"This is output"<<std::endl;
      std::cerr<<"This is error"<<std::endl;

      //sleep for 1 second
      std::this_thread::sleep_for(std::chrono::seconds(1));

      assert(false &&"this is a assert");
   }

}